


<!DOCTYPE html>

<html lang="zh-cmn-Hans"><head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">

    <title>ECharts</title>
    <!-- 引入 echarts.js -->
    <script src="https://cdn.bootcss.com/echarts/4.1.0/echarts.min.js"></script>
</head>
<body >
<!-- 为ECharts准备一个具备大小（宽高）的Dom -->

<div id="main" style="width: 300px;height:300px;"></div>
<script type="text/javascript">
        // 基于准备好的dom，初始化echarts实例
        var myChart = echarts.init(document.getElementById('main'));
var option;

function flutterCallJsMethod(option){

option && myChart.setOption(option);

}
    </script>
</body>
</html>